package com.lcl.myapiinterface.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author 555
 * @title: SignUtils
 * @projectName myapi-interface
 * @description: TODO
 * @date 2023/3/1123:50
 */
public class SignUtils {
/**
 * @Author 555
 * @Description //TODO 构建签名
 * @Date  
 * @Param 密码
 * @Param 用户参数
 * @return  不可解码的值
        **/

    public static String getSign(String body, String secretKey){
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String content = body+ '.' + secretKey;
        return md5.digestHex(content);
    }

}
